﻿namespace Brjnk.Maps.Cache
{
    using System;

    public class NullMapCache : IMapCache
    {
        public void AddToCache(string mapName, TileId tile, System.Windows.Media.Imaging.BitmapImage image, DateTime downloadTime)
        {
        }

        public void Clear()
        {
        }

        public GetCachedTileResult GetTile(string mapName, TileId tile, bool returnIfExpired)
        {
            return GetCachedTileResult.Failed(mapName, tile);
        }

        public void AddToCache(string mapName, TileId tile, System.Windows.Media.Imaging.BitmapImage image)
        {
        }
    }
}